using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;

public class IngamePage : UIPanel
{
    // [SerializeField]
    // private Button pauseButton;
    public void Awake()
    {
        UIManager.Instance.AddPanel(PanelId.Ingame, this);
    }
    public override void Show()
    {
        transform.DOScale(1f, 0f);
        base.Show();
    }
    public override void Hide()
    {
        transform.DOScale(0f, 0f);
        base.Hide();
    }
    public void OnClickPauseButton()
    {
        Time.timeScale = 0.1f;
        UIManager.Instance.CreateOrOpen(PanelId.Pause);
    }
}
